package date;

import java.util.Calendar;
import java.util.Scanner;

public class Week {

	public static void main(String[] args) {
		int y,m;
		Scanner in=new Scanner(System.in);
		System.out.println("请输入要查询的日期");
		y=in.nextInt();
		m=in.nextInt();
		Calendar c1=Calendar.getInstance();
		Calendar c2=Calendar.getInstance();
		c1.set(y,m-1, 1);
		c2.set(y,m, 1);
		long s=c2.getTimeInMillis()-c1.getTimeInMillis();
		int d=(int) (s/1000/3600/24);
		System.out.println(d);
		
				
	}

}
